Rem  Copyright (c) 1999, 2000 by Marcelo F. Ochoa.  All Rights Reserved.
Rem
Rem   NAME
Rem     xtf.spc - DB Prism Xml Toolkit Functions (xtf)
Rem   PURPOSE
Rem     Install the PL/SQL needed to run the XML Application.
Rem   NOTES
Rem
Rem   HISTORY
Rem     mochoa@ieee.org   04/02/02 -
Rem       add comment function
Rem     mochoa@ieee.org   07/02/02 -
Rem       Funtionality for Cocoon 2
Rem       add constants encoding,defaultEncoding and contentType
Rem     mochoa@ieee.org   11/17/00 -
Rem		    add Content-type: text/xml in prolog function
Rem		    replace xtf.tag(cname,cvalue,bclose)
Rem		    by xtf.tag(cname,cvalue,cattributes)
Rem     mochoa@ieee.org   1/7/00 -  Creation version 1.0.0
Rem

CREATE OR REPLACE PACKAGE xtf AS
-- version 2.0.0
--   added function
--     comment
--   added constants
--     encoding
--     defaultEncoding
--   used by xtp toolkit
-- obsoletes funtions:
--   xtf.prolog(cversion,cstylesheet,cmedia,cattrbutes) replaced by xtp.prolog(cversion)
--   xtf.stylesheet(...)
--   xtf.process(...)
--   xtf.not_found
----------------------------------------------
-- version 1.0.1
--   replace xtf.tag(cname,cvalue,bclose)
--   by xtf.tag(cname,cvalue,cattributes)
--
----------------------------------------------
-- version 1.0.0
-- initial

encoding VARCHAR2(64) := 'notInitialized';
defaultEncoding VARCHAR2(64) := 'iso-8859-1';

function prolog(cversion in VARCHAR2 default '1.0') return VARCHAR2;
function comment(ccomment in VARCHAR2) return VARCHAR2;
function epilog return VARCHAR2;
function tag(cname in VARCHAR2,
		cvalue in VARCHAR2,
		cattributes in VARCHAR2 default NULL) return VARCHAR2;
function tagOpen(cname in VARCHAR2,cattributes in VARCHAR2 default NULL) return VARCHAR2;
function tagClose(cname in VARCHAR2) return VARCHAR2;
END xtf;
/
